package com.ruoyi.bizsys.mapper;

import java.util.List;

import com.ruoyi.bizsys.domain.ExtIdentityResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 身份验证数据Mapper接口
 *
 * @author african-loan
 * @date 2021-12-30
 */
public interface ExtIdentityResultMapper extends BaseMapper<ExtIdentityResult>{

    String getIdentityPhones(@Param("realNameLogId") Long realNameLogId);

    /**
     * 只查api_name、state字段
     * 根据bvn查询该号码指定api_name最近一条记录的状态
     * @param bvn
     * @return
     */
    List<ExtIdentityResult> selectLastApiNamesStateByBvn(@Param("bvn") String bvn);

    List<ExtIdentityResult> selectLastApiNamesStateByAccount(@Param("account") String account);
}
